package com.bop.dehong.broadcast;

import com.base.dehong.util.LogUtils;
import com.bop.dehong.util.LockScreenUtil;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * @author YeFengYun
 * 
 * @describe 锁屏唤醒时打开手势密码
 */
public class ScreenOnReceiver extends BroadcastReceiver
{
    @Override
    public void onReceive(Context context, Intent intent)
    {
        String action = intent.getAction();
        if(Intent.ACTION_SCREEN_ON.equals(action) && LockScreenUtil.getInstance().isRunningForeground(context)){
        	LogUtils.e("ScreenReceiver:onReceive");
        	LockScreenUtil.getInstance().verifyGesture(context);
        }
    }
}
